﻿
namespace PPFinance.DataRia.Web
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Data.Objects.DataClasses;
    using System.Linq;
    using System.ServiceModel.DomainServices.Hosting;
    using System.ServiceModel.DomainServices.Server;


    // The MetadataTypeAttribute identifies Expenditure_CategoryMetadata as the class
    // that carries additional metadata for the Expenditure_Category class.
    [MetadataTypeAttribute(typeof(Expenditure_Category.Expenditure_CategoryMetadata))]
    public partial class Expenditure_Category
    {

        // This class allows you to attach custom attributes to properties
        // of the Expenditure_Category class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class Expenditure_CategoryMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private Expenditure_CategoryMetadata()
            {
            }

            public int ECID { get; set; }

            public EntityCollection<Expenditure_Details> Expenditure_Details { get; set; }

            public string Memo { get; set; }

            public string Name { get; set; }

            public int ParentID { get; set; }
        }
    }

    // The MetadataTypeAttribute identifies Expenditure_DetailsMetadata as the class
    // that carries additional metadata for the Expenditure_Details class.
    [MetadataTypeAttribute(typeof(Expenditure_Details.Expenditure_DetailsMetadata))]
    public partial class Expenditure_Details
    {

        // This class allows you to attach custom attributes to properties
        // of the Expenditure_Details class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class Expenditure_DetailsMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private Expenditure_DetailsMetadata()
            {
            }

            public decimal Amount { get; set; }

            public int CardID { get; set; }

            public int ECID { get; set; }

            public int EDID { get; set; }

            public Expenditure_Category Expenditure_Category { get; set; }

            public bool IsCards { get; set; }

            public string Memo { get; set; }

            public int OwnerID { get; set; }

            public Sys_Users Sys_Users { get; set; }

            public DateTime TriggerTime { get; set; }
        }
    }

    // The MetadataTypeAttribute identifies Income_CategoryMetadata as the class
    // that carries additional metadata for the Income_Category class.
    [MetadataTypeAttribute(typeof(Income_Category.Income_CategoryMetadata))]
    public partial class Income_Category
    {

        // This class allows you to attach custom attributes to properties
        // of the Income_Category class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class Income_CategoryMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private Income_CategoryMetadata()
            {
            }

            public int ICID { get; set; }

            public EntityCollection<Income_Details> Income_Details { get; set; }

            public string Memo { get; set; }

            public string Name { get; set; }

            public int ParentID { get; set; }
        }
    }

    // The MetadataTypeAttribute identifies Income_DetailsMetadata as the class
    // that carries additional metadata for the Income_Details class.
    [MetadataTypeAttribute(typeof(Income_Details.Income_DetailsMetadata))]
    public partial class Income_Details
    {

        // This class allows you to attach custom attributes to properties
        // of the Income_Details class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class Income_DetailsMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private Income_DetailsMetadata()
            {
            }

            public decimal Amount { get; set; }

            public int CardID { get; set; }

            public int ICID { get; set; }

            public int IDID { get; set; }

            public Income_Category Income_Category { get; set; }

            public bool IsCards { get; set; }

            public string Memo { get; set; }

            public int OwnerID { get; set; }

            public Sys_Users Sys_Users { get; set; }

            public DateTime TriggerTime { get; set; }
        }
    }

    // The MetadataTypeAttribute identifies Sys_CardsMetadata as the class
    // that carries additional metadata for the Sys_Cards class.
    [MetadataTypeAttribute(typeof(Sys_Cards.Sys_CardsMetadata))]
    public partial class Sys_Cards
    {

        // This class allows you to attach custom attributes to properties
        // of the Sys_Cards class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class Sys_CardsMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private Sys_CardsMetadata()
            {
            }

            public decimal Amount { get; set; }

            public int CardID { get; set; }

            public string CardNumber { get; set; }

            public int CardOnwer { get; set; }

            public string CardPwd { get; set; }

            public DateTime CreateTime { get; set; }

            public string Memo { get; set; }

            public EntityCollection<Sys_Enchashment> Sys_Enchashment { get; set; }

            public Sys_Users Sys_Users { get; set; }
        }
    }

    // The MetadataTypeAttribute identifies Sys_EnchashmentMetadata as the class
    // that carries additional metadata for the Sys_Enchashment class.
    [MetadataTypeAttribute(typeof(Sys_Enchashment.Sys_EnchashmentMetadata))]
    public partial class Sys_Enchashment
    {

        // This class allows you to attach custom attributes to properties
        // of the Sys_Enchashment class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class Sys_EnchashmentMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private Sys_EnchashmentMetadata()
            {
            }

            public int Actioner { get; set; }

            public decimal Amount { get; set; }

            public int CardID { get; set; }

            public int EnchashmentID { get; set; }

            public int Inputer { get; set; }

            public string Memo { get; set; }

            public Sys_Cards Sys_Cards { get; set; }

            public Sys_Users Sys_Users { get; set; }

            public Sys_Users Sys_Users1 { get; set; }
        }
    }

    // The MetadataTypeAttribute identifies Sys_UsersMetadata as the class
    // that carries additional metadata for the Sys_Users class.
    [MetadataTypeAttribute(typeof(Sys_Users.Sys_UsersMetadata))]
    public partial class Sys_Users
    {

        // This class allows you to attach custom attributes to properties
        // of the Sys_Users class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class Sys_UsersMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private Sys_UsersMetadata()
            {
            }

            public EntityCollection<Expenditure_Details> Expenditure_Details { get; set; }

            public EntityCollection<Income_Details> Income_Details { get; set; }

            public string Memo { get; set; }

            public string Password { get; set; }

            public string RealName { get; set; }

            public EntityCollection<Sys_Cards> Sys_Cards { get; set; }

            public EntityCollection<Sys_Enchashment> Sys_Enchashment { get; set; }

            public EntityCollection<Sys_Enchashment> Sys_Enchashment1 { get; set; }

            public int UserID { get; set; }

            public string userName { get; set; }
        }
    }
}
